package cn.edu.jxust.core.infrastructure.util.authc;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author QiuKangming
 * @version 1.0
 * @description 自定义认证器
 * @since 2020/06/24 16:18
 */

public class JwtToken implements AuthenticationToken {

    private final String token;

    public JwtToken(String jwt){
        super();
        this.token = jwt;
    }

    /**
     * 返回访问令牌
     * @return Object
     */
    @Override
    public Object getPrincipal() {

        return token;

    }

    /**
     * 返回访问令牌
     * @return Object
     */
    @Override
    public Object getCredentials() {

        return token;

    }
}
